package com.mms.entity;

/**
 * ConfigureId entity. @author MyEclipse Persistence Tools
 */

public class ConfigureId implements java.io.Serializable {

    // Fields

    private Integer DId;
    private String topic;

    // Constructors

    /** default constructor */
    public ConfigureId() {
    }

    /** full constructor */
    public ConfigureId(Integer DId, String topic) {
        this.DId = DId;
        this.topic = topic;
    }

    // Property accessors

    public Integer getDId() {
        return this.DId;
    }

    public void setDId(Integer DId) {
        this.DId = DId;
    }

    public String getTopic() {
        return this.topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public boolean equals(Object other) {
        if ((this == other))
            return true;
        if ((other == null))
            return false;
        if (!(other instanceof ConfigureId))
            return false;
        ConfigureId castOther = (ConfigureId) other;

        return ((this.getDId() == castOther.getDId()) || (this.getDId() != null && castOther.getDId() != null && this.getDId().equals(castOther.getDId())))
                && ((this.getTopic() == castOther.getTopic()) || (this.getTopic() != null && castOther.getTopic() != null && this.getTopic().equals(castOther.getTopic())));
    }

    public int hashCode() {
        int result = 17;

        result = 37 * result + (getDId() == null ? 0 : this.getDId().hashCode());
        result = 37 * result + (getTopic() == null ? 0 : this.getTopic().hashCode());
        return result;
    }

}